9ac5612ffd018e6ad53dcd43bbc83988ed9caecb,naming/src/test/java/org/jboss/as/naming/subsystem/Naming110TransformersTestCase.java,Naming110TransformersTestCase,doTestRejectExpressions_1_1_0,#KernelServicesBuilder#,242

Before Change



        //Use the real xml with expressions for testing all the attributes
        PathAddress subsystemAddress = PathAddress.pathAddress(pathElement(SUBSYSTEM, SUBSYSTEM_NAME));
        checkFailedTransformedBootOperations(
                mainServices,
                VERSION_1_1_0,
                builder.parseXmlResource("subsystem_with_expressions_compatible_1.1.0.xml"),
                new FailedOperationTransformationConfig());
    }
}

After Change


        assertTrue(legacyServices.isSuccessfulBoot());

        //Use the real xml with expressions for testing all the attributes
        ModelTestUtils.checkFailedTransformedBootOperations(mainServices, VERSION_1_1_0, parse(getSubsystemXml("subsystem.xml")),
                new FailedOperationTransformationConfig()
                        .addFailedAttribute(PathAddress.pathAddress(NamingExtension.SUBSYSTEM_PATH, NamingSubsystemModel.BINDING_PATH),
                                new FailedOperationTransformationConfig.NewAttributesConfig(NamingSubsystemModel.OBJECT_FACTORY_ENV))
        );
    }
}